# $Id: PKGBUILD 183422 2013-04-21 22:11:03Z heftig $
# Maintainer: Eric Bélanger <eric@archlinux.org>
# Contributor: William Díaz <wdiaz [at] archlinux [dot] us>

pkgname=gupnp-igd
pkgver=0.2.2
pkgrel=1
pkgdesc="A library to handle UPnP IGD port mapping"
arch=(i686 x86_64)
url="http://www.gupnp.org"
license=(LGPL)
depends=(gupnp python2-gobject2)
makedepends=(gettext)
options=('!libtool' '!makeflags')
source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver::3}/$pkgname-$pkgver.tar.xz)
sha1sums=('bd24e98b224b3a233b0ab6714638ed4c6bf64b47')

build() {
  cd $pkgname-$pkgver
  PYTHON=python2 ./configure --prefix=/usr
  make
}

check() {
  cd $pkgname-$pkgver
  make check
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}

